﻿using Platformer_Example.Content.Images.Environment;
using Transformable_Engine_v2.Engine;
using Transformable_Engine_v2.Engine.Animation.PositionAnimation;
using Transformable_Engine_v2.Engine.Animation.Trajectory;
using Transformable_Engine_v2.Engine.GameObjects.Containers;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Platformer_Example.Screen.Common
{
    public class Background : Container
    {
        public override void LoadContent()
        {
            Container titleContainer = new Container(Game.Options.ScreenSize.X / 2, 7);
            ImageContainer titleProject = new ImageContainer
            {
                PositionGridBound = new TE_Vector2(0, 0),
                Sprite = SpritesheetMenu.GetSprite(SpritesheetMenu.Title.Project),
                Origin = TE_Rectangle.Alignment.TopMiddle,
            };
            ImageContainer titleMaverick = new ImageContainer
            {
                PositionGridBound = new TE_Vector2(0, 10),
                Sprite = SpritesheetMenu.GetSprite(SpritesheetMenu.Title.Maverick),
                Origin = TE_Rectangle.Alignment.TopMiddle
            };
            titleContainer.AddChildren(titleProject, titleMaverick);
            AddChildren(titleContainer);

            base.LoadContent();
        }
    }
}